package tree

import "fmt"

type Node struct {
	data  interface{}
	left  *Node
	right *Node
}

func NewNode(data interface{}) *Node {
	return &Node{
		data: data,
	}
}

func (that *Node) String() string {
	return fmt.Sprintf("v:%+v,left:%+v,right:%+v", that.data, that.left, that.right)
}
